// 设置缓存
export const setStorage = (key: string, value: any) => {
  window.localStorage.setItem(key, JSON.stringify(value));
};

// 获取缓存
export const getStorage = (key: string) => {
  return JSON.parse(window.localStorage.getItem(key) as string);
};

// 清除缓存
export const removeStorage = (key: string) => {
  window.localStorage.removeItem(key);
};
